﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpenseSystem.Common;
using ExpenseSystem.Common.BaseModel;
using ExpenseSystem.DataUpdater;
using ExpenseSystem.Fether;
using ExpenseSystem.Model;
using ExpenseSystem.Core.DataAddOn;
using System.Web;

namespace ExpenseSystem.Core.SalesPointModules
{
    public abstract class SalesPointEmployeeManager:INormalManager<SalesPointEmployeeModel>
    {
        protected string tran = HttpContext.Current.Items[Definition.SESSION_TRAN_STR].ToString();

        protected SalesPointEmployeeManager() { }
        public static SalesPointEmployeeManager CreateInstance()
        {
            return new SalesPointEmployeeBaseManager();
        }

        protected NormalDataUpdater<SalesPointEmployeeModel> updater = new SalesPointEmployeeUpdaterRegister().GetSalesPointEmployeeUpdater();
        public abstract bool Delete(SalesPointEmployeeModel SalesPointEmployee, out string message);
        public abstract bool Save(SalesPointEmployeeModel SalesPointEmployee, out string message,params IAddable<SalesPointEmployeeModel>[] addables);
        public abstract bool DeleteById( long[] SalesPointEmployee,  out string message);
    }
}
